<script setup lang="ts">
const bar = () => {}
</script>

<template>
    <slot @bar="bar"></slot>
</template>